﻿@model SubAccountModel
@using Grand.Web.Models.Customer;
@inject IPageHeadBuilder pagebuilder
@{
    Layout = "_ColumnsTwo";

    //title
    pagebuilder.AddTitleParts(T("PageTitle.Account").Text);
}
@section left
{
    @await Component.InvokeAsync("CustomerNavigation", new { selectedTabId = CustomerNavigationEnum.SubAccounts })
}
<form asp-route="CustomerSubAccountEdit" asp-antiforgery="true" method="post" autocomplete="off" v-on:submit.prevent="validateBeforeSubmit($event)">
    <div class="page account-page subaccount-edit-page pl-lg-3 mb-3 pt-lg-0 pt-3">
        <h1 class="generalTitle h2">@T("Account.SubAccount.Edit")</h1>
        <div asp-validation-summary="ModelOnly" class="message-error alert alert-danger"></div>
        <partial name="_CreateOrUpdateSubAccount" model="Model" />
        <div class="buttons generalMarginSupporter">
            <input type="submit" class="btn btn-info save-subaccount-button" value="@T("Common.Save")" />
        </div>
    </div>
</form>